﻿<UserControl xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"  x:Class="MeshSilverLightSilverlight.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="400" Height="300">
    <Grid x:Name="LayoutRoot" Background="White">
        <StackPanel>
            <ProgressBar x:Name="progressBar" Value="50" Height="30"></ProgressBar>
                <chartingToolkit:Chart x:Name="chart" Width="350" Height="250">
                    <chartingToolkit:Chart.Series>
                        <chartingToolkit:ColumnSeries ItemsSource="{Binding}" 
                            DependentValuePath="Value" 
                            IndependentValuePath="Key"
                            Title="Life" IsSelectionEnabled="True" />
                        </chartingToolkit:Chart.Series>
                    </chartingToolkit:Chart>
                <TextBlock>Put chart into silverlight</TextBlock>
        </StackPanel>
    </Grid>
</UserControl>
